<template>
  <el-input v-model="val" placeholder="渲染输入框" ref="elInput"></el-input>
</template>
<script>
export default {
  props: {
    modelValue: {
      type: String,
    },
  },
  data() {
    return {
      val: this.modelValue,
    };
  },
  watch: {
    val() {
      this.$emit("input", this.val);
    },
  },

  methods: {},
};
</script>
<style lang="scss" scoped></style>
